package com.example.day04;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateTest {
    public static void main(String[] args) {
        Date date = new Date(2023, Calendar.MARCH, 23);
        System.out.println(date);

        Date d = new Date(0);
        System.out.println(d);

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println(simpleDateFormat.format(date));

    }
}
